home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d27 / bu4dir.arc / BU4DIR.DOC next >
Text File  |  1990-06-14  |  2KB  |  62 lines

  1.                                BU4DIR
  2.  
  3. This program will display a dos-style direcotory of a DOS 4.01 Backup disk
  4. from the CONTROL.nnn file on the disk.
  5.  
  6. It takes one parameter, the drive on which the backup disk resides, generally
  7. A: or B:. The colon can be omitted: BU4DIR A will also work.
  8.  
  9. The output can be redirected to a file, or piped thru MORE, for better output.
  10.  
  11. The source code is inlcuded. While I reserve the rights to the source, I am
  12. releasing the program into the public domain. This program must be distributed
  13. with the source file and this document file. No fee may be charged for this
  14. program, other than nominal fees charged by users groups and the like.
  15.  
  16. If you modify the source code, please give send a copy to:
  17.  
  18.           Curt Freeman
  19.           1515 Jeff Davis Hwy #208
  20.           Arlington VA 22202
  21.  
  22. Any donations you feel compelled to send will not, of course, be refused.
  23.  
  24.  
  25.  
  26. Following is the file structure of the CONTROL.nnn file:
  27.  
  28. CONTROL.nnn File Header:  [first part of file, not repeated]
  29.  
  30. Bytes     Description
  31. -----     ---------------------
  32.   1       Length of file header (byte) [including this byte] always 139
  33.  2-9      BACKUP (followed by 2 blank spaces
  34. 10-11     This disks' disk number (word) [matches nnn of CONTROL.nnn]
  35. 12-139    Blank
  36.  
  37. Path Header: [repeated for every path after file desc for previous path]
  38.  
  39. Bytes     Description
  40. -----     ---------------------
  41.   1       Length of Path Header (byte) [including this byte] always 70 (F)
  42. 2-64      Path
  43. 65-66     Number of files in this path (subdirectory) (word)
  44. 67-70     Offset to beginning of next path (dir) entry in this file (long int)
  45.  
  46. File Desc [repeated number of times indicated in path header]
  47.  
  48. Bytes     Description
  49. -----     ---------------------
  50.   1       Length of File Desc (byte) [always 34]
  51.  2-13     Filename
  52.   14      End of filename indicator (?) Always Ascii[3] (a heart)
  53. 15-18     File size (long int)
  54. 19-20     Disk no. that this file starts on. (word)
  55. 21-24     Offset to this file's data in BACKUP.nnn data file. (long int)
  56. 25-28     Bytes on this disk. [always file size unless split] (long int)
  57. 29-30     File Attributes (word)
  58. 31-34     DateTime of file (long int)
  59.  
  60.  
  61.  
  62.